﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
using Formboard.Resources;

namespace Formboard
{
   public class InviteUserBoardRequest
    {
        public InviteDescription create_invite = new InviteDescription();

        public InviteUserBoardRequest()
        {
        }
        public InviteUserBoardRequest(Board boardToJoin)
        {
            this.create_invite.board.url = boardToJoin.url;
        }
        public InviteUserBoardRequest(string url1)
        {
            create_invite.board.url = url1;
        }

        public class InviteDescription
        {
            public FieldWithStringUrl board = new FieldWithStringUrl();
        }


        public class FieldWithStringUrl
        {
            [XmlAttribute("url")]
            public string url;
        }

    }
}
